<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<div class="ch-container">

<div class="row">
    <div class="box col-md-12">
        <div class="box-inner">
            <div class="box-header well" data-original-title="">
                <h2><i class="glyphicon glyphicon-edit"></i> 景区信息编辑</h2>

                <div class="box-icon">
                    <a href="javascript:;" class="btn btn-setting btn-round btn-default"><i
                            class="glyphicon glyphicon-cog"></i></a>
                    <a href="javascript:;" class="btn btn-minimize btn-round btn-default"><i
                            class="glyphicon glyphicon-chevron-up"></i></a>
                    <a href="javascript:;" class="btn btn-close btn-round btn-default"><i
                            class="glyphicon glyphicon-remove"></i></a>
                </div>
            </div>
            <div class="box-content">
                <form class="form-inline" role="form" id="scene-form">
                    <div class="form-group">
                        <label>景区名称：</label>
                        <input name="name" type="text" class="form-control">
                    </div>
                    <div class="clearfix"></div><br>
                    <div class="form-group">
                        <label>展示图片：</label>
                        <span class="btn btn-success fileinput-button">
					        <i class="glyphicon glyphicon-plus"></i>
					        <span>添加图片...</span>
					        <!-- The file input field used as target for the file upload widget -->
					        <input id="ticket-img-upload" type="file" name="file" multiple>
					    </span>
                    </div>
                    <div class="clearfix"></div><br>
                    <div class="form-group col-md-12">
                       <ul id="imgs" class="thumbnails gallery">
                       </ul> 
                    </div>
                    <div class="form-group">
                        <label>景区描述：</label>
                        <!-- 加载编辑器的容器 -->
						<script id="desc_editor" name="desc" type="text/plain">${scene.description }</script>
                    </div>
                    <div class="clearfix"></div><br>
                    <div class="form-group">
                        <label>景区星级：</label>
                        <select name="DictionaryId" class="form-control">
                        	<option value="">--请选择--</option>
                        	<c:forEach items="${levels }" var="level">
                        		<option value="${level.dictionaryId }">${level.name }</option>
                        	</c:forEach>
                        </select>
                    </div>
                    <div class="clearfix"></div><br>
                    <div class="form-group">
                        <label>景区位置：</label>
                        <span>
                        <select class="area-select form-control" name="areaId">
                        	<option value="">--请选择--</option>
                        	<c:forEach items="${provinces }" var="province">
                        		<option value="${province.admDivId }">${province.name }</option>
                        	</c:forEach>
                        </select>
                        <select class="area-select form-control" name="areaId">
                        	<option value="">--请选择--</option>
                        	<c:forEach items="${citys }" var="city">
                        		<option value="${city.admDivId }">${city.name }</option>
                        	</c:forEach>
                        </select>
                        <select class="area-select form-control" name="areaId">
                        	<option value="">--请选择--</option>
                        	<c:forEach items="${districts }" var="district">
                        		<option value="${district.admDivId }">${district.name }</option>
                        	</c:forEach>
                        </select>
                        </span>
                        <input id="fullAddress" type="text" class="form-control">
                    </div>
                    <div class="clearfix"></div><br>
                    <div class="form-group">
	                    <label>开放时间：</label>
	                    <input name="open_time" type="text" class="form-control" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/>
	                    <label>关闭时间：</label>
	                    <input name="close_time" type="text" class="form-control" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/>
	                </div>
                    <div class="clearfix"></div><br>
                    <div class="form-group">
                        <label>交通信息：</label>
                        <!-- 加载编辑器的容器 -->
						<script id="traffic_editor" name="traffic" type="text/plain">${scene.traffic_info}</script>
                    </div>
                    <div class="clearfix"></div><br>
                    <div class="form-group">
                        <label>GPS信息：</label>
						<label>N：</label>
                        <input name="GPS_lat" readonly="readonly" type="text" class="form-control">
                        <label>W：</label>
                        <input name="GPS_lng" readonly="readonly" type="text" class="form-control">
                        <button id="getLoc" class="btn btn-default" type="button">获取坐标位置</button>
                    </div>
                    <div class="clearfix"></div><br>
                    <div class="form-group">
                        <label>景区提示：</label>
                        <!-- 加载编辑器的容器 -->
						<script id="prompt_editor" name="prompt" type="text/plain">${scene.caution}</script>
                    </div>
                    <div class="clearfix"></div><br>
                    <div class="form-group">
                        <label>最佳出游：</label>
                        <input name="best_travel_time" type="text" class="form-control">
                    </div>
                    <div class="clearfix"></div><br>
                    <div class="form-group">
                    	<label>景点状态：</label>
                    	<label class="radio-inline">
		                    <input type="radio" name="isOK" value="1" checked="checked">启用
		                </label>
		                <label class="radio-inline">
		                    <input type="radio" name="isOK" value="0">禁用
		                </label>
                    </div>
                    <div class="clearfix"></div><br>
                    <button type="button" class="btn btn-default" id="savebtn">保存</button>
                </form>

            </div>
        </div>
    </div>
    <!--/span-->

</div><!--/row-->
</div>